/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.niedziela12.pai.ejb.room.facades;

import com.niedziela12.pai.ejb.entities.Room;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Kamil
 */
@Local
public interface RoomFacadeLocal {

    void create(Room room);

    Room edit(Room room);

    void remove(Room room);

    Room find(Object id);

    List<Room> findAll();

    List<Room> findRange(int[] range);

    int count();
    
    List<Integer> getAllFreeRooms(int roomId, Date begin, Date end, int capactiy);
    
    List<Room> getHotelRooms(Long hotelId);
}
